<div class="hanghoas view">
<h2><?php  __('Hanghoa');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $hanghoa['Hanghoa']['id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Loaihang'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $this->Html->link($hanghoa['Loaihang']['id'], array('controller' => 'loaihangs', 'action' => 'view', $hanghoa['Loaihang']['id'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Mahh'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $hanghoa['Hanghoa']['mahh']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Tenhh'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $hanghoa['Hanghoa']['tenhh']; ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Hanghoa', true), array('action' => 'edit', $hanghoa['Hanghoa']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('Delete Hanghoa', true), array('action' => 'delete', $hanghoa['Hanghoa']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $hanghoa['Hanghoa']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Hanghoas', true), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Hanghoa', true), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Loaihangs', true), array('controller' => 'loaihangs', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Loaihang', true), array('controller' => 'loaihangs', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Chitieudvs', true), array('controller' => 'chitieudvs', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Chitieudv', true), array('controller' => 'chitieudvs', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Chitieunvs', true), array('controller' => 'chitieunvs', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Chitieunv', true), array('controller' => 'chitieunvs', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Diemchuans', true), array('controller' => 'diemchuans', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Diemchuan', true), array('controller' => 'diemchuans', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php __('Related Chitieudvs');?></h3>
	<?php if (!empty($hanghoa['Chitieudv'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Donvi Id'); ?></th>
		<th><?php __('Kehoach Id'); ?></th>
		<th><?php __('Hanghoa Id'); ?></th>
		<th><?php __('Soluong'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($hanghoa['Chitieudv'] as $chitieudv):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $chitieudv['id'];?></td>
			<td><?php echo $chitieudv['donvi_id'];?></td>
			<td><?php echo $chitieudv['kehoach_id'];?></td>
			<td><?php echo $chitieudv['hanghoa_id'];?></td>
			<td><?php echo $chitieudv['soluong'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'chitieudvs', 'action' => 'view', $chitieudv['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'chitieudvs', 'action' => 'edit', $chitieudv['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'chitieudvs', 'action' => 'delete', $chitieudv['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $chitieudv['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Chitieudv', true), array('controller' => 'chitieudvs', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Chitieunvs');?></h3>
	<?php if (!empty($hanghoa['Chitieunv'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Hanghoa Id'); ?></th>
		<th><?php __('Kehoach Id'); ?></th>
		<th><?php __('Nhanvien Id'); ?></th>
		<th><?php __('Soluong'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($hanghoa['Chitieunv'] as $chitieunv):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $chitieunv['id'];?></td>
			<td><?php echo $chitieunv['hanghoa_id'];?></td>
			<td><?php echo $chitieunv['kehoach_id'];?></td>
			<td><?php echo $chitieunv['nhanvien_id'];?></td>
			<td><?php echo $chitieunv['soluong'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'chitieunvs', 'action' => 'view', $chitieunv['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'chitieunvs', 'action' => 'edit', $chitieunv['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'chitieunvs', 'action' => 'delete', $chitieunv['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $chitieunv['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Chitieunv', true), array('controller' => 'chitieunvs', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Diemchuans');?></h3>
	<?php if (!empty($hanghoa['Diemchuan'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Hanghoa Id'); ?></th>
		<th><?php __('Kehoach Id'); ?></th>
		<th><?php __('Diem'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($hanghoa['Diemchuan'] as $diemchuan):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $diemchuan['id'];?></td>
			<td><?php echo $diemchuan['hanghoa_id'];?></td>
			<td><?php echo $diemchuan['kehoach_id'];?></td>
			<td><?php echo $diemchuan['diem'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'diemchuans', 'action' => 'view', $diemchuan['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'diemchuans', 'action' => 'edit', $diemchuan['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'diemchuans', 'action' => 'delete', $diemchuan['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $diemchuan['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Diemchuan', true), array('controller' => 'diemchuans', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
